refactor: Use particle outcome for alive check#5300
refactor: Use particle outcome for alive check#5300kodiakhq[bot] merged 11 commits intoacts-project:mainfrom
Conversation
AJPfleger
left a comment
There was a problem hiding this comment.
It is not totally clear to me, why the performance changes.
The performance change is also not obvious to me but since we cannot claim it was understood to such degree before I simply went for updating the references. We can definitely check that but it requires a bit more attention and time |
…cts into fatras-explicit-kill-particle
|
From my point of view, that's ok to go - it's not that we had this fully debugged before. E.g. I ran into DividedByZero issues in the schema before when setting the energy to zero to indicate that the particle is not alive anymore, so I would suggest we move that forward. |
|



Particle::killParticlefunctionParticle::isAlivechecks outcome and not absolute momentumActs::fastHypotoverstd::hypotand deduplcateenergy()calculationcorrectEnergyloseEnergyand flip the sign of the input--- END COMMIT MESSAGE ---